import requests from '@/api/request'
export default {
  // 查询
  findAllList (data) {
    return requests({
      url: `/v1/api/backend/corporation/findAllList`,
      method: 'post',
      data
    })
  },
  // 编辑
  editCorporation(data) {
    return requests({
      url: `/v1/api/backend/corporation/editCorporation`,
      method: 'post',
      data
    })
  },
  delCorporation (data) {
    return requests({
      url: `/v1/api/backend/corporation/delCorporation/${data}`,
      method: 'post'
    })
  },
  addCorporation (data) {
    return requests({
      url: `/v1/api/backend/corporation/addCorporation`,
      method: 'post',
      data
    })
  },

  //更新机构状态
  editCorporationStatus (data) {
    return requests({
      url: `/v1/api/backend/corporation/editCorporationStatus`,
      method: 'post',
      data
    })
  }
}
